package com.ybb.production.responce;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 生产工单对象 garment_production_order
 *
 * @author ruoyi
 * @date 2023-09-06
 */
@Data
public class GarmentProductionProgressByBedNoResp {

    @ApiModelProperty(value = "裁床id")
    private Long cuttingBedId;

    @ApiModelProperty(value = "床号")
    private String bedNo;

    @ApiModelProperty(value = "裁床数")
    private String cuttingBedQuantity;

    @ApiModelProperty(value = "完成件数")
    private String completePieceQuantity;

    @ApiModelProperty(value = "工序数")
    private String totalQuantity;

    @ApiModelProperty(value = "已完成数")
    private String accomplishQuantity;

    @ApiModelProperty(value = "裁床日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String createTime;

    @ApiModelProperty(value = "裁床工序列表")
    private List<CuttingBedProcess> cuttingBedProcessList;


    @Data
    public static class CuttingBedProcess {
        @ApiModelProperty(value = "裁床id")
        private Long cuttingBedId;

        @ApiModelProperty(value = "工序名称")
        private String processName;

        @ApiModelProperty(value = "单价")
        private String price;

        @ApiModelProperty(value = "工序数")
        private Long totalQuantity;

        @ApiModelProperty(value = "已完成数")
        private Long completeQuantity;

        @ApiModelProperty(value = "余数")
        private Long remainderQuantity;

        @ApiModelProperty(value = "工序id")
        private Long processId;

    }
}
